//
//  MPAppConstant.m
//  M800Project
//
//  Created by 姚宗超 on 14/11/5.
//  Copyright (c) 2014年 姚宗超. All rights reserved.
//

#import "MPAppConstant.h"

@implementation MPAppConstant

NSUInteger DeviceSystemMajorVersion() {
    static NSUInteger _deviceSystemMajorVersion = -1;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _deviceSystemMajorVersion = [[[[[UIDevice currentDevice] systemVersion]
                                       componentsSeparatedByString:@"."] objectAtIndex:0] intValue];
    });
    return _deviceSystemMajorVersion;
}

#pragma mark ---

// API 地址（测试）
NSString* const kMPAPIURL = @"http://10.18.6.90:9990/mobile";


// API 地址（正式）
//NSString* const kMPAPIURL = @"http://www.meng800.com/mobile/";

// 百度云推送的 API Key
NSString* const kMPBaiduPushAPIKey = @"CydRwLL30dDzjj7ieFFGw34z";

// 百度云推送的 Secret Key
NSString* const kMPBaiduPushSecretKey = @"xITc59YN8FvC7DS2tIGkmoidw5K4oveO";

// 百度云推送的APP ID
NSString* const kMPBaiduPushAppId = @"4412466";

// 调用第一P2P的url scheme
NSString* const kMPFirstP2PUrlScheme = @"firstp2p://";

@end
